import request from '@/utils/request'

export function getRepairList(data) {
  return request({
    url: '/repair/page',
    method: 'post',
    data
  })
}

export function addRepair(data) {
  return request({
    url: '/repair',
    method: 'post',
    data
  })
}

export function getRepair(id) {
  return request({
    url: `/repair/${id}`,
    method: 'get'
  })
}

export function repairComplete(data) {
  return request({
    url: '/repair/complete',
    method: 'post',
    data
  })
}

export function repairConfirm(id) {
  return request({
    url: `/repair/confirm/${id}`,
    method: 'post'
  })
}

export function repairConfirmPay(id) {
  return request({
    url: `/repair/confirmPay/${id}`,
    method: 'post'
  })
}

export function repairStop(id) {
  return request({
    url: `/repair/stop/${id}`,
    method: 'post'
  })
}
